-- GENERATED SPELL FOR [Flame of Azzinoth] --


function spell0_22997(pUnit, Event) --@Flame Blast,Self--
pUnit:FullCastSpellOnTarget(40631,pUnit)
pUnit:RegisterEvent('Sorts_22997', 599, 1)
end

function Sorts_22997(pUnit, Event)
local choix_sorts_22997 = math.random(0, 0)
if choix_sorts_22997 == 0 then
pUnit:RegisterEvent('spell0_22997', 1, 1)
end
end

function mob22997_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22997', math.random(1500, 3000), 1)
end

function mob22997_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22997_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22997_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22997, 1, 'mob22997_Action')
RegisterUnitEvent(22997, 2, 'mob22997_Leave')
RegisterUnitEvent(22997, 3, 'mob22997_Kill')
RegisterUnitEvent(22997, 4, 'mob22997_Die')
